﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Core.Framework.Distributed.Model
{
    /// <summary>
    /// 申请锁
    /// </summary>
    public class ApplyLockEntity
    {
        /// <summary>
        /// 锁主题
        /// </summary>
        public string Topic { get; set; }

        /// <summary>
        /// 任务超时时间
        /// 单位 ms
        /// </summary>
        public int TaskExpirationTime { get; set; }

        /// <summary>
        /// 申请超时时间 
        /// 单位 ms
        /// 默认 5000
        /// </summary>
        public int ApplyExpirationTime { get; set; }

        /// <summary>
        /// 并发数量
        /// </summary>
        public int MaxCount { get; set; }
    }
}
